<?php

/**
 * 自定义板块
 * File Name：BlockController.php
 * File Encoding：UTF-8
 * File New Time：2014-5-26 9:07:59
 * Author：水平凡
 * Mailbox：admin@abc3210.com
 */
class BlockController extends AdminBase {

    public function actionIndex() {
        $this->basePage('CustomBlockModel', array('order' => 'id desc'));
        $this->render();
    }

    public function actionAdd() {
        $this->baseAdd('CustomBlockModel', 'index');
    }

    public function actionEdit() {
        $this->baseEdit('CustomBlockModel', 'index');
    }

    public function actionDelete() {
        $this->baseDelete('CustomBlockModel', 'index');
    }

}
